package my.ts.code.viewgroup;

import my.ts.code.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class DetailItem extends LinearLayout {

	public TextView title, header;
	public ImageView avatar;

	public DetailItem(Context context) {
		super(context);
		LayoutInflater li = (LayoutInflater) this.getContext()
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		li.inflate(R.layout.item_detail, this, true);

		title = (TextView) findViewById(R.id.title);
		header = (TextView) findViewById(R.id.header);
		avatar = (ImageView) findViewById(R.id.avatar);
		// TODO Auto-generated constructor stub
	}

}
